package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 首页产品详情
 * </p>
 *
 * @author myg
 * @since 2024-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MjHomeProduct对象", description="首页产品详情")
public class MjHomeProduct extends Model<MjHomeProduct> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ApiModelProperty(value = "类型  1 产品特点 2 API 3 产品案例 4 服务能力 5 应用场景")
    private String type;

    @ApiModelProperty(value = "标题")
    private String typeTitle;

    @ApiModelProperty(value = "副标题")
    private String typeSubtitle;

    @ApiModelProperty(value = "属性图片地址")
    private String attributeUrl;

    @ApiModelProperty(value = "属性标题")
    private String attributeTitle;

    @ApiModelProperty(value = "属性副标题")
    private String attributeSubtitle;

    @ApiModelProperty(value = "跳转地址")
    private String target;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    private Date createTime;

    private Date updateTime;
    @ApiModelProperty(value = "状态 0：有效  1：无效")
    private Integer status;

    @ApiModelProperty(value = "前端需求")
    private String alt;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
